home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / ae / code / ax3.00 / dropdtr.c < prev    next >
Encoding:
C/C++ Source or Header  |  1980-01-03  |  604 b   |  26 lines

  1. #include "bbs.h"
  2. extern struct CIA *cia_ptr;
  3. extern UBYTE serin[];
  4.  
  5. /*****************************************/
  6. /* set serial DTR line                   */
  7. /* false = DTR off; true = DTR on        */
  8. /*****************************************/
  9. void DropDTR(void)
  10. {
  11.  if(SEROUT) {
  12.      if(!CheckIO(ReadSerReq)){ 
  13.         AbortIO(ReadSerReq);}
  14.       WaitIO(ReadSerReq);
  15.  
  16.      
  17.         CloseSerial();    // this was not resetting SEROUT Mon Jun  8 04:02:50 1992
  18.      Delay(60L);
  19.         if(OpenSerial(Cmds->OpeningBaud,(UBYTE)8,(UBYTE)1)!=0) {
  20.          ShutDown("Can't re-open Serial Device!");
  21.         }
  22.      Delay(12L);
  23.      }
  24. }
  25.  
  26.